package com.gs.gaosheng.service.impl;

import com.gs.gaosheng.mapper.ShowGoodsWebMapper;
import com.gs.gaosheng.service.ShowGoodsService;
import com.gs.gaosheng.vo.CouponVo;
import com.gs.gaosheng.vo.ShowVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShowGoodsServiceImpl implements ShowGoodsService {
    @Resource
    private ShowGoodsWebMapper showGoodsWebMapper;


    @Override
    public  List<ShowVo> selectByStatus(Long statusName) {
        return showGoodsWebMapper.selectByStatus(statusName);
    }

    @Override
    public List<ShowVo> selectByGoodsId(Long goodsId) {
        return showGoodsWebMapper.selectByGoodsId(goodsId);
    }

    @Override
    public List<ShowVo> selectByType(Long typeId) {
        return showGoodsWebMapper.selectByType(typeId);
    }

    @Override
    public List<ShowVo> selectByLike(String searchName) {
        return showGoodsWebMapper.selectByLike(searchName);
    }

    @Override
    public List<CouponVo> selectCouponByCouponStatus(Long userId,Long couponStatus) {
        return showGoodsWebMapper.selectCouponByCouponStatus(userId,couponStatus);
    }

    @Override
    public List<CouponVo> selectCouponByUserId(Long userId) {
        return showGoodsWebMapper.selectCouponByUserId(userId);
    }
}
